def buile_person(first_name, last_name, age='', work=''):
    """返回一个字典，其中包含一个人的信息"""
    person = {'first':first_name, 'last':last_name}
    if age:
        person['age']=age
    if work:
        person['work']=work
    return person

# musician = buile_person('jimi', 'hendrix', age=11, work='pythoner')
# print(musician)

while True:
    print('\nTell me  your name:')
    f_name = input("first name:")
    l_name = input("last name:")

    formatted_name = buile_person(f_name, l_name)
    print("\nHello , " + formatted_name + '!')
